package d1116.r214.num07;

public class Demo02 {
    public static void main(String[] args){
        String[] arr={"刘备","关羽","张飞"};
        //for
        for(int x=0;x<arr.length;x++){
            System.out.println(arr[x]);
        }
        System.out.println("=======");

        //foreach
        for (String str:arr) {
            System.out.println(str);

        }
        }


    }
